package service.impl;

import java.util.List;
import java.util.Map;

import bean.Role;
import dao.RoleDao;
import service.RoleService;


public class RoleServiceImpl implements RoleService {

	private RoleDao roleDao = new RoleDao();


	public List<Role> pageQueryData(Map<String, Object> map) {
		return roleDao.pageQueryData(map);
	}

	public int pageQueryCount(Map<String, Object> map) {
		return roleDao.pageQueryCount(map);
	}

	public List<Role> queryAll() {
		return roleDao.queryAll();
	}

	public void insertRolePermission(Map<String, Object> paramMap) {
		roleDao.deleteRolePermissions(paramMap);
		roleDao.insertRolePermission(paramMap);
	}

}
